﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;
using TianShiProject.Models.Materials.MaterialStatistics;
using Volo.Abp.Application.Services;

namespace TianShiProject.Materials.MaterialStatistics
{
    public class MaterialStatisticsService : ApplicationService
    {
        private readonly IMaterialStatisticsRepository _materialStatisticsRepository;
        public MaterialStatisticsService(IMaterialStatisticsRepository materialStatisticsRepository)
        {
             _materialStatisticsRepository= materialStatisticsRepository;
        }

        #region 物资统计——查询分页显示
        /// <summary>
        /// 物资统计——查询分页显示
        /// </summary>
        /// <param name="GoodsName"></param>
        /// <param name="Texture"></param>
        /// <param name="Nationw"></param>
        /// <param name="Province"></param>
        /// <param name="BeginTime"></param>
        /// <param name="EndTime"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        public async Task<PageResponse<MaterialStatisticsDto>> GetMaterialStatisticsPageShow(string GoodsName, int Texture, int Nationw, int Province, DateTime? BeginTime, DateTime? EndTime, int pageindex = 1, int pagesize = 3)
        {
            return await _materialStatisticsRepository.GetMaterialStatisticsPageShow(GoodsName, Texture, Nationw, Province, BeginTime, EndTime, pageindex, pagesize);
        }
        #endregion
    }
}
